package edu.fjut.se1603.yuan.entity;

public class Pet {
    private Integer id;
    private Integer ownerId;//主人id
    private Integer storeId;//商店id
    private String name;
    private  double price;

    public Pet(Integer id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public Pet() {
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Pet{" +
                "id=" + id +
                ", ownerId=" + ownerId +
                ", storeId=" + storeId +
                ", name='" + name + '\'' +
                ", price=" + price +
                '}';
    }

    public Pet(int id, Integer ownerId, Integer storeId, String name, double price) {
        this.id = id;
        this.ownerId = ownerId;
        this.storeId = storeId;
        this.name = name;
        this.price = price;
    }
}
